package com.sumainfor.wx.system.maket.controller.rentadviser;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.system.maket.service.RdTenantService;
import net.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 *
 * <p>
 *
 * @author: zc
 * @create: 2019-08-23 11:26
 **/

@Controller
@RequestMapping("/RdTenantController")
public class RdTenantController {

    @Autowired
    RdTenantService rdTenantService;




    /**
     * 创建客户的时候现根据手机查询是否已经有租客存在
     * @author zhoucong
     * @data 2019/8/23
     * @Param
     * @return
     */
    @ResponseBody
    @GetMapping("/getTenantByTenMode")
    public JsonResult getTenantByTenMode(@RequestParam Map<String,Object> params){
     return  rdTenantService.getTenantByTenMode(params);
    }
}
